#27 error in javascript console