Fixed js Error