Finally require js working properly