added a filepath constant to make it easier to define your custom path
fixed a few missing variables for the_field()
fixed javascript errors for the repeatable and image fields