8044638: Tidy up Nashorn codebase for code standardsReviewed-by: lagergren, sundar
8015348: RegExp("[") results in StackOverflowErrorReviewed-by: sundar, attila