File structure for JS,jQuery and Ruby