Reduced amount of code.

Chose a standard approach for calling Action with parameters using html
form tag istead of self invented javascript code.