Fixed javascript error and added composer.json