advanced search - js moved to resources