Cleaned up javascript syntax via lint