js moved to separate file