added BASE_PATH
set baseUrl() for scripts
final version for Lawyer