Commited js factory file