Converted tabs to spaces and added additional comments for JS scripts