I am getting a really weird JavaScript error when I run this code:
where are you trying to return the value? to console in dev tools is better for debugging