Added JS for upload preview
Signed-off-by: Alexey Korolev <akorolex@gmail.com>