Refactoring
Fix issue where OWF will only load the last javascript function called