Most-likely not on Javascript... It seems your only option is server-side, in other words, learn PHP.