Try rearranging js require