js issue fixed

fixed javascript issues that was happening