fix javascript get script