I\'m facing a weird issue where a JS file attached via the Javascript API does not work properly. I couldn\'t really pin down why it isn\'t working by the JS file consists of a