javascript fix for server
fix javascript