getting rid of global functions and moving the code for each physics file into its own ember controller