added libs and use require js for loading main script