Increase max_length
Catch HTTPErrors
Add namespace for javascript url
Catch HTTPError on import