Fixing jscs errors and building dist