Create custom authentication for javascript backend appplication

subj