Rewrited for requreJS