JS adjustments

included prettify operation in sublime text