fixed doubled javascript responses. we included all JS twice in the application file