JS documentation improvement and cleanup