separate javascript(wip)