:green_apple: move js from index to external file