moved js function again