tidying javascript comments and respiratory completed