JS separated from from html