Javascript now can get the needed parameters

I am too lazy to add the AJAX, though.