HTTp controller javascript frontend