moved js script to different file; added stokes hall shape (will clean up code later)