fixes #12 - fixed bad JS ref