new js access api + restruct. controllers

+ added dev mode