JS - Undefined Location Name Fix

Also moved JS doc to shared JS