added sample code for require js