js should be moved to separate file