commands functions -> commands.js

Removed commands functions for putting them in another file