refactored css to reuse index of method
moved js file to js folder