working on js

we seem to be having syncing problems...