changing method names for func calls
adding $ to commands.js