Board install php script fix

+ ajaxapi references added
+ code inspection defects fixed
code inspector reported these 4 "for"s as problems: Invalid id reference,
i did not find any good reason to have those there and removed those...