got js on files
added detail
the code is correct