fixes to js functions after local testing