added another JavaScript file and fixed bugs and styling issues