separated js from html