js codes seperated