added caption styles, moved script to JS folder