Separate js from html