Removed relPath dependency from frameURL function