problem with JS 'name' fixed