js for user pic