Cleaned syntax, added js libs