javascript works now properly again