fixed javascript break