Moved the javascript code under app instead of vendor