Include JS in only the template files that actually need it
Use correct form of user->lang for language vars
Expand table name string var docblcok