Added support for boolean values to the qa_js function

Although this technically affects business logic the core does not use this function for boolean values. I also don't think anyone is using this for boolean values because they just won't get any so it seems to be a safe move.