Fixing incorrect .gitignore rule.

Added the missing dist/ folders in 3rdparty/javascript.

Testing Done:
./gradlew run && ./gradlew clean build.

Bugs closed: AURORA-485

Reviewed at https://reviews.apache.org/r/21994/