Don't use javascript for simple tasks.