Make JS secure