implement require js