ported the application over, js nonfunctioning
fixed functionality for js