fixed javascript app