use javascript as script