Normalize JavaScript file to cmd module