Create physicalfunctions.js