JavaScript was separated from html