Improved code readability
Fixed bug with JS files not being registered before enqueuing