Added M4L scripts for other controllers, unified their operation.

Made changes to naming conventions and unified all scripts under one JS