Separated js from index