Pass parameters to jenkins job with the help of userContent
Looks like I read documentation not attentively.  

userContent supports only static content but not dynamic. 

Thus, PHP/JS or something similar can not be used there: https://wiki.jenkins.io/display/JENKINS/User+Content