separating js from html